package com.hjl.spring6.junit.junit4;

import com.hjl.spring6.junit.junit5.User;
import org.junit.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author ServivE
 * @version 0.1
 * @className SpringJunit4Test
 * @description
 * @date 2024/8/7 19:28
 * @since jdk11
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:bean.xml")
public class SpringJunit4Test {
    @Autowired
    private User user;

    @Test
    public void testUser() {
        System.out.println(user);
    }

}
